{# ветка дерева директорий #}
{% load i18n %}
{% load fm_media %}

    {% for item in dirnode %}
        {% for i in item.level_div %}</ul></li>  {% endfor %}
        
          <li class="sc"><div><p>
          {% if item.child != 0 %}
            <a href="#" id="tn_%s" class="sc" onclick="return UnHide(this, '{% url get_dirtree_node item.path %}')">
              <img src="{% fileman_media_prefix %}img/plus.gif" />
            </a>
          {% endif %}
          <a href="#" onclick="return load_directory('{% url ajax_ls_path item.path %}')">
            <img src="{% fileman_media_prefix %}img/treefolder.png" class="i" />{{ item.name }} [{{ item.depth }}{{ forloop.counter }}]
          </a>
          </p></div></li>  
    {% endfor %}   







{% comment %}          
    {% else %}
      <li class="sc"><div><p>
      <a href="#" id="tn_%s" class="sc" onclick="return UnHide(this, '{% url get_dirtree_node item.path %}')"><img src="{% fileman_media_prefix %}img/minus.gif" /></a>
      {#<a href="{% url ls_path item.path %}">#}
      
      <a href="#" onclick="return load_directory('{% url ajax_ls_path item.path %}')">
      
      <img src="{% fileman_media_prefix %}/img/treefolder.png" class="i" />{{ item.name }}</a>
      </p></div><ul>
    {% endif %}  
{% endcomment %}        
  

{% comment %}
{% block content_right %}
<div id="content-right">
  <div class="toolbar">
    <ul>
      <li><a href="/">Вверх</a></li>
      <li><a href="catalog/">Загрузка</a></li>
      <li><a href="basket/">Добавить Директорию</a></li>
      <li><a href="help/">Дополнительно</a></li>
    </ul>
  </div>
<div id="list-view">
{% include 'listview_items.html' %}
</div>
<script>
$(document).ready(OnLoadEvent);
</script>

</div>
{% endblock %} 
{% endcomment %}
